package top.infopub.model.flow;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import top.infopub.generic.GenericEntity;

import java.util.Date;

/** 审批流程节点（含发起节点）(FLOW_PROCESS_NODE) **/
public class ProcessNode extends GenericEntity  {

	private static final long serialVersionUID = 1L;

	/*PK*/
	private String id;
	/*PK*/
	public String getId(){
		return id;
	}

	public void setId(String id){
		 this.id = id;
	}

	/* 添加时间 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date addTime;

	public Date getAddTime(){
		return addTime;
	}

	public void setAddTime(Date addTime){
		this.addTime = addTime;
	}
	/* 处理意见 */
	private String dealIdea;

	public String getDealIdea(){
		return dealIdea;
	}

	public void setDealIdea(String dealIdea){
		this.dealIdea = dealIdea;
	}
	/* 处理人姓名 */
	private String dealName;

	public String getDealName(){
		return dealName;
	}

	public void setDealName(String dealName){
		this.dealName = dealName;
	}
	/* 处理时间 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date dealTime;

	public Date getDealTime(){
		return dealTime;
	}

	public void setDealTime(Date dealTime){
		this.dealTime = dealTime;
	}
	/* 处理人ID */
	private String dealUserId;

	public String getDealUserId(){
		return dealUserId;
	}

	public void setDealUserId(String dealUserId){
		this.dealUserId = dealUserId;
	}
	/* 节点索引 */
	private Integer nodeIdx;

	public Integer getNodeIdx(){
		return nodeIdx;
	}

	public void setNodeIdx(Integer nodeIdx){
		this.nodeIdx = nodeIdx;
	}
	/* 节点名称 */
	private String nodeName;

	public String getNodeName(){
		return nodeName;
	}

	public void setNodeName(String nodeName){
		this.nodeName = nodeName;
	}
	/* 审批流程ID */
	private String processId;

	public String getProcessId(){
		return processId;
	}

	public void setProcessId(String processId){
		this.processId = processId;
	}
	/* 关联业务表记录ID */
	private String srcBizSguid;

	public String getSrcBizSguid(){
		return srcBizSguid;
	}

	public void setSrcBizSguid(String srcBizSguid){
		this.srcBizSguid = srcBizSguid;
	}
	/* 关联业务表单表名 */
	private String srcBizTable;

	public String getSrcBizTable(){
		return srcBizTable;
	}

	public void setSrcBizTable(String srcBizTable){
		this.srcBizTable = srcBizTable;
	}
	/* 状态 -1=待审批 0=不同意 1=同意 */
	private String state;

	public String getState(){
		return state;
	}

	public void setState(String state){
		this.state = state;
	}
	/* 处理人部门ID */
	private String userDeptId;

	public String getUserDeptId(){
		return userDeptId;
	}

	public void setUserDeptId(String userDeptId){
		this.userDeptId = userDeptId;
	}
	/* 处理人部门名称 */
	private String userDeptName;

	public String getUserDeptName(){
		return userDeptName;
	}

	public void setUserDeptName(String userDeptName){
		this.userDeptName = userDeptName;
	}
	/* 处理人公司ID */
	private String userOrgId;

	public String getUserOrgId(){
		return userOrgId;
	}

	public void setUserOrgId(String userOrgId){
		this.userOrgId = userOrgId;
	}
	/* 处理人公司名称 */
	private String userOrgName;

	public String getUserOrgName(){
		return userOrgName;
	}

	public void setUserOrgName(String userOrgName){
		this.userOrgName = userOrgName;
	}

	/* 节点权限 1=审批 2=知会  */
    private Integer nodePolicy;

    public Integer getNodePolicy() {
        return nodePolicy;
    }
    public void setNodePolicy(Integer nodePolicy) {
        this.nodePolicy = nodePolicy;
    }

    /* 节点为知会时 是否已读 为空是未读  1=已读  */
    private Integer notifyReadFlag;

    public Integer getNotifyReadFlag() {
        return notifyReadFlag;
    }

    public void setNotifyReadFlag(Integer notifyReadFlag) {
        this.notifyReadFlag = notifyReadFlag;
    }


    private String oaId;

	private Integer oaFinish;

	public String getOaId() {
		return oaId;
	}

	public void setOaId(String oaId) {
		this.oaId = oaId;
	}

	public Integer getOaFinish() {
		return oaFinish;
	}

	public void setOaFinish(Integer oaFinish) {
		this.oaFinish = oaFinish;
	}
}
